<?php
/**
 * Permission Config
 * User: zng
 * Date: 2019/11/19
 * Time: 17:50
 */
return [
    //需要排除路由
    'exclude' => [
//        'admin/Index/index',
//        'admin/Index/welcome'
    ],
    //需要排除的控制器
    'exclude_controller' => [
        'Controllers',
        'Login',
        'Index',
        'Common',
        'customer/Message'
    ],
    //定义通用排除的方法名
    'currency_exclude_action' => [
        'only',
        'skin'
    ],
    //定义分组名
    'category' => [
        'admin/Administrator' => [
            'name' => '管理员管理',
            'path' => '/admin/admin/admin'
        ],
        'admin/Permission' => [
            'name' => '权限管理',
            'path' => '/admin/admin/permission'
        ],
        'admin/PermissionCategory' => [
            'name' => '权限分组管理',
            'path' => '/admin/admin/permissionCategory'
        ],
        'admin/Roles' => [
            'name' => '角色管理',
            'path' => '/admin/admin/roles'
        ],
        'admin/Menus' => [
            'name' => '菜单管理',
            'path' => '/admin/admin/menus'
        ]
    ],
    //定义单个权限名
    'title' => [
        'admin/admin/Permission/auto' => '自动更新'
    ],
    //定义通用权限名称
    'currency_name' => [
        'index' => '列表',
        'create' => '添加页',
        'save' => '添加',
        'read' => '查看',
        'edit' => '编辑页',
        'update' => '编辑',
        'delete' => '删除',
        'status' => '状态修改',
        'destory' => '批量删除',
    ],
];